package Xuan;

import java.util.Scanner;

public class Paytest {
    public static void main(String[] args) {
        double money = 800;
        System.out.println("您需要付款的金额为:"+money);
        System.out.println("请选择您的支付方式：1.银行卡支付 2.微信支付 3.支付宝支付");
        Scanner scanner = new Scanner(System.in);
        switch(scanner.nextInt()){
            case 1:
                Pay bankpay = new Bankpay();
                bankpay.pay(money);
                break;
            case 2:
                Pay wechatpay = new Wechatpay();
                wechatpay.pay(money);
                break;
            case 3:
                Pay alipay = new Alipay();
                alipay.pay(money);
                break;
        }
    }
}
